package com.gxp.system.service.impl;

import com.gxp.common.core.text.Convert;
import com.gxp.system.domain.ZkRequestSampleService;
import com.gxp.system.mapper.ZkRequestSampleServiceMapper;
import com.gxp.system.service.IZkRequestSampleServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Request、Sample、Service关联 业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-13
 */
@Service
public class ZkRequestSampleServiceServiceImpl implements IZkRequestSampleServiceService 
{
    @Autowired
    private ZkRequestSampleServiceMapper zkRequestSampleServiceMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param requestId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ZkRequestSampleService selectZkRequestSampleServiceByRequestId(Long requestId)
    {
        return zkRequestSampleServiceMapper.selectZkRequestSampleServiceByRequestId(requestId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param zkRequestSampleService 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ZkRequestSampleService> selectZkRequestSampleServiceList(ZkRequestSampleService zkRequestSampleService)
    {
        return zkRequestSampleServiceMapper.selectZkRequestSampleServiceList(zkRequestSampleService);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param zkRequestSampleService 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertZkRequestSampleService(ZkRequestSampleService zkRequestSampleService)
    {
        return zkRequestSampleServiceMapper.insertZkRequestSampleService(zkRequestSampleService);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param zkRequestSampleService 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZkRequestSampleService(ZkRequestSampleService zkRequestSampleService)
    {
        return zkRequestSampleServiceMapper.updateZkRequestSampleService(zkRequestSampleService);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param requestIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteZkRequestSampleServiceByRequestIds(String requestIds)
    {
        return zkRequestSampleServiceMapper.deleteZkRequestSampleServiceByRequestIds(Convert.toStrArray(requestIds));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param requestId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteZkRequestSampleServiceByRequestId(Long requestId)
    {
        return zkRequestSampleServiceMapper.deleteZkRequestSampleServiceByRequestId(requestId);
    }
}
